package com.lt.bcra.result;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;


@AllArgsConstructor
@Getter
@ToString
public enum ResponseEnum {

    SUCCESS(200,"数据返回成功"),
    FAIL(201,"数据返回失败"),
    ERROR(500,"内部系统错误"),

    DELETE_DATA_ERROR(501,"删除数据失败"),
    CREATE_DATA_ERROR(502,"创建数据失败"),
    UPDATE_DATA_ERROR(503,"修改数据失败"),
    SELECT_DATA_ERROR(504,"查找数据失败"),
    STATE_UPDATE_ERROR(505,"状态修改异常"),

    //-1xx 服务器错误
    BAD_SQL_GRAMMAR_ERROR(-101, "sql语法错误"),
    SERVLET_ERROR(-102, "servlet请求异常"), //-2xx 参数校验
    UPLOAD_ERROR(-103, "文件上传错误"),
    EXPORT_DATA_ERROR(104, "数据导出失败"),

    //-2xx 参数校验
    MOBILE_SAME_ERROR(-201,"手机号重复"),
    MOBILE_NULL_ERROR(-202, "手机号码不能为空"),
    MOBILE_ERROR(-203, "手机号码不正确"),
    PASSWORD_NULL_ERROR(204, "密码不能为空"),
    CODE_NULL_ERROR(205, "验证码不能为空"),
    CODE_ERROR(206, "验证码错误"),
    MOBILE_EXIST_ERROR(207, "手机号已被注册"),
    LOGIN_MOBILE_ERROR(208, "用户不存在"),
    LOGIN_PASSWORD_ERROR(209, "密码错误"),
    LOGIN_LOKED_ERROR(210, "用户被冻结"),
    FROZEN_UPDATE_ERROR(211,"冻结操作异常"),
    LOGIN_AUTH_ERROR(-211, "未登录"),

    CATEGORY_SAME_ERROR(301,"字典种类重复"),
    CODE_SAME_ERROR(302,"字典编号重复"),
    DICTIONART_SAME_ERROR(303,"字典数据重复"),



    CLOOPEN_RESPONSE_ERROR(-501, "容联云短信服务响应失败"),
    ALIYUN_SMS_LIMIT_CONTROL_ERROR(-502, "短信发送过于频繁"),//业务限流
    CLOOPEN_SMS_ERROR(-503, "短信发送失败"),//其他失败

    WEIXIN_CALLBACK_PARAM_ERROR(-601, "回调参数不正确"),
    WEIXIN_FETCH_ACCESSTOKEN_ERROR(-602, "获取access_token失败"),
    WEIXIN_FETCH_USERINFO_ERROR(-603, "获取用户信息失败"),
    WEIXIN_BIND_ERROR(-604,"微信绑定失败"),
    WEIXIN_HAS_BIND_ERROR(-604,"微信已被绑定")
    ;

    private Integer code;
    private String message;
}
